package CheckBox;

import javax.swing.*;

public class CheckBoxTest extends JFrame {
    public CheckBoxTest(){
        this.setLayout(null);

        MyCheckBox myCheckBox = new MyCheckBox("爱好",new String[]{"打篮球","踢球","画画","书法"},
                50,50,this);
        System.out.println(myCheckBox.getItem());



        this.setSize(500,600);
        this.setVisible(true);
        this.setDefaultCloseOperation(3);
        this.setLocationRelativeTo(null);
    }






    public static void main(String[] args) {
        new CheckBoxTest();
    }
}
